package com.alex.seo.domain.group;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.alex.seo.domain.site.Site;

@Entity
@Table(name = "site_group_item")
public class SiteGroupItem implements Serializable {

	@Id
	@ManyToOne
	private Site site;

	@Id
	@ManyToOne
	private SiteGroup siteGroup;
	
	public SiteGroupItem() {
	}

	public SiteGroupItem(Site site, SiteGroup siteGroup) {
		this.site = site;
		this.siteGroup = siteGroup;
	}

	public Site getSite() {
		return site;
	}

	public void setSite(Site site) {
		this.site = site;
	}

	public SiteGroup getSiteGroup() {
		return siteGroup;
	}

	public void setSiteGroup(SiteGroup siteGroup) {
		this.siteGroup = siteGroup;
	}
}
